/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ivanbiz.nilai;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionMapping;

/**
 *
 * @author Ivan
 */
public class NilaiForm extends org.apache.struts.action.ActionForm {

    private long id;
    private String nama;
    private float nilai;
    private long accountKelas;
    private String namaKriteria;
    private String keteranganKriteria;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getAccountKelas() {
        return accountKelas;
    }

    public void setAccountKelas(long accountKelas) {
        this.accountKelas = accountKelas;
    }

    public String getKeteranganKriteria() {
        return keteranganKriteria;
    }

    public void setKeteranganKriteria(String keteranganKriteria) {
        this.keteranganKriteria = keteranganKriteria;
    }

    public String getNama() {
        return nama;
    }

    public void setNama(String nama) {
        this.nama = nama;
    }

    public String getNamaKriteria() {
        return namaKriteria;
    }

    public void setNamaKriteria(String namaKriteria) {
        this.namaKriteria = namaKriteria;
    }

    public float getNilai() {
        return nilai;
    }

    public void setNilai(float nilai) {
        this.nilai = nilai;
    }

    @Override
    public void reset(ActionMapping mapping, HttpServletRequest request) {
        this.nama = null;
        this.namaKriteria = null;
        this.keteranganKriteria = null;
        this.nilai = 0;
    }
}
